package malred.controller;

import malred.entity.department;
import malred.service.departmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author malguy-wang sir
 * @create ---
 */
@RestController
public class departmentController {
    @Autowired
    private malred.service.departmentService departmentService;
    @GetMapping("/dep")
    public department getDepartmentById(Integer id){
        return departmentService.getDepartmentById(id);
    }
}
